package com.infosystem.demo.models;

import com.infosystem.demo.helpers.JobTitleEnum;
import com.infosystem.demo.helpers.PoliticalTitleEnum;
import com.infosystem.demo.helpers.RelativeTypeEnum;

/**
 * Data Transfer Object, Input
 * 用于接收前端传来的数据
 * @property employee_id 员工id
 * @property name 亲属姓名
 * @property job_title 亲属工作
 * @property political_title 亲属政治面貌
 * @property type 亲属类型
 */
public class RelativeDTOI {
    private String employeeId;
    private String name;
    private JobTitleEnum jobTitle;
    private PoliticalTitleEnum politicalTitle;
    private RelativeTypeEnum type;

    public RelativeDTOI() {
    }

    public RelativeDTOI(String employeeId, String name, JobTitleEnum jobTitle, PoliticalTitleEnum politicalTitle, RelativeTypeEnum type) {
        this.employeeId = employeeId;
        this.name = name;
        this.jobTitle = jobTitle;
        this.politicalTitle = politicalTitle;
        this.type = type;
    }

    public String getEmployeeId() {return employeeId;}
    public void setEmployeeId(String employeeId) {this.employeeId = employeeId;}

    public String getName() {return name;}
    public void setName(String name) {this.name = name;}

    public String getJobTitle() {return jobTitle.getTitle();}
    public void setJobTitle(JobTitleEnum jobTitle) {this.jobTitle = jobTitle;}

    public String getPoliticalTitle() {return politicalTitle.getTitle();}
    public void setPoliticalTitle(PoliticalTitleEnum politicalTitle) {this.politicalTitle = politicalTitle;}

    public String getType() {return type.getTitle();}
    public void setType(RelativeTypeEnum type) {this.type = type;}
}
